// TimestampedMessage.java
package com.lst.selfaiagent.utils;

import org.springframework.ai.chat.messages.Message;

import java.time.LocalDateTime;

public class TimestampedMessage {
    private LocalDateTime timestamp;
    private Message message;

    public TimestampedMessage() {}

    public TimestampedMessage(Message message) {
        this.timestamp = LocalDateTime.now();
        this.message = message;
    }

    // getters and setters
    public LocalDateTime getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(LocalDateTime timestamp) {
        this.timestamp = timestamp;
    }

    public Message getMessage() {
        return message;
    }

    public void setMessage(Message message) {
        this.message = message;
    }
}
